<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>{$data.nickname}上传了参考{$data.title}做法的学习成果_烘焙入门_烘焙圈</title>
	<meta name="keywords" content="{$data.title}的做法"/>
	<meta name="description" content="{$data.nickname}在烘焙圈学会了怎么做{$data.title}，还上传了自己做的{$data.title}照片，你也来一起学习分享吧。"/>
    <link rel="stylesheet" href="__CSS__/global.css" />
    <link rel="stylesheet" href="__CSS__/suishoupai.css" />
    <link rel="stylesheet" href="__CSS__/yf.css" />
    <Admintemplate file="Home/Public/global_js"/>
    <script src="__JS__/jquery.min.js"></script>
</head>

<body>

<div class="b-page">
    <include file="Public:header" />

<div class="b-body l-center">
    <div class="b-zuopinCat">
        <a href="__WEBURL__/index" class="yf-zuopinCat">首页</a>
        <span>&gt;</span>
        <a href="__WEBURL__/category/{$data.cateid}" class="yf-zuopinCat">{$data.cateid|getCateName}</a>
        <span>&gt;</span>
        <a href="javascript:;" class="yf-zuopinCat">{$data.title}</a>
    </div>
    <div class="b-popDetail__body">
        <div class="b-popDetail__left">
            
            <div class="b-zuopinInfo" style="display: none;">
                <img src="__IMAGES__/icon_quanzi_view.png" class="pic_mid"><span>浏览{$data.clicknum}次</span>
                <span class="b-zuopinInfo__line">|</span>
                <a href="#msg"><i class="b-messageIcon pic_mid"></i>{$data.msgnum}</a>
                <span class="b-zuopinInfo__line">|</span>
                <a href="#dig"><i class="b-dingIcon pic_mid"></i>{$data.goodnum}</a>
                <span class="b-zuopinInfo__line">|</span>
                <a href="#dig"><i class="b-caiIcon pic_mid"></i>{$data.badnum}</a>
                <span class="b-zuopinInfo__line">|</span>
                <div id="bd-share"><i class="b-fenxiangIcon pic_mid"></i>分享
                    <!-- bd-sharing begin -->
                    <div class="bdsharebuttonbox bd-share-code">
                        <a href="#" rel="nofollow" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
                        <a href="#" rel="nofollow" class="bds_douban" data-cmd="douban" title="分享到豆瓣网"></a>
                        <a href="#" rel="nofollow" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
                        <a href="#" rel="nofollow" class="bds_duitang" data-cmd="duitang" title="分享到堆糖"></a>
                        <a href="#" rel="nofollow" class="bds_huaban" data-cmd="huaban" title="分享到花瓣"></a>
                        <a href="#" rel="nofollow" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
                    </div>
                    <script>
                        window._bd_share_main = undefined;
                        window._bd_share_config = {
                            common : {
                                bdText : '{$data.title}',
                                bdDesc : '{$data.content|str_cut=50}',
                                bdUrl : '__WEBURL__/works/{$data.workid}',
                                bdPic : '__FILESURL__{$data.image}'
                            },
                            share : {
                                "bdSize" : 24
                            }
                        }
                        with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion='+~(-new Date()/36e5)];
                    </script>
                </div>
                <!-- bd-sharing end -->
            </div>
            <div class="b-popDetail__pic"><img src="__FILESURL__{$data.image}" width="100%"/></div>
            
            <div class="b-zuopinAuthor">
                <div class="yf-zuopinAvatar">
                    <a href="__WEBURL__/u/{$user.openuid}" title="{$user.nickname}"><img src="__FILESURL__{$user.uavatar}" title="{$user.nickname}" width="55px"></a>
                </div>
                <div class="yf-zuopinText">
                    <p class="yf-zuopinMem"><a href="__WEBURL__/u/{$user.openuid}" class="yf-zuopinHref">{$user.nickname}</a>&nbsp;做过&nbsp;<a href="javascript:;" class="yf-zuopinHref">{$data.title}</a></p>
                    <p class="yf-zupoinCont">{$data.content}</p>
                    <span class="yf-zuopinDate">{$data.create_time|date="Y-m-d H:i", ###}</span>
                </div>
                <a name="dig"></a>
                <if condition="$digtype.id gt 0">
                    <a data-url="do/canceldig/" class="R_ajax_trip" data-info="infoid,{$data.workid}">
                        <if condition="$digtype.digtype eq 1">
                            <span class="b-zuopinFayan__btn">取消点赞</span>
                        </if>
                    </a>
                    <else/>
                    <a data-url="do/adddig/" class="R_ajax_trip" data-info="infoid,{$data.workid}~digtype,1"><div class="b-zuopinZancai__item">
                            <span>点赞</span>
                        </div></a>
                </if>
            </div>
            
            <div class="p-zuopinRes">
                <div class="yf-zuopinRes-img">
                    <a href="__WEBURL__/works/{$data.copyid}"><img src="__FILESURL__{$copyinfo.image}" width="150px" title="{$copyinfo.title}"></a>
                </div>
                <div class="yf-zuopinRes-cont">
                    <p class="yf-zuopinRes-tit"><a href="__WEBURL__/works/{$data.copyid}">{$copyinfo.title}</a><span>步骤图</span></p>
                    <p class="yf-zuopinRes-yl">{$copyinfo.materials}</p>
                    <p class="yf-zuopinRes-use">{$copyinfo.donum}&nbsp;人做过（七天内&nbsp;{$copyinfo.nownum}&nbsp;人做过）</p>
                    <p class="yf-zuopinRes-aut"><a href="__WEBURL__/u/{$copyuser.openuid}">{$copyuser.nickname}</a></p>
                </div>
            </div>
           
            <div class="b-zuopinView">
                <div class="b-popLeftZan__title">{$data.goodnum} 赞</div>
                <div class="b-zuopinView__list">
                    <foreach name="diglist" item="dl">
                        <a href="__WEBURL__/u/{$dl.openuid}" class="b-zuopinView__item">
                            <img class="l-full" src="{$dl.uavatar|getUavatar}" alt="">
                            <i class="b-popOtherZuopin__itemMask"></i>
                        </a>
                    </foreach>
                    <if condition="data.goodnum gt 20">
                    <a href="__WEBURL__/member/dig?workid={$data.workid}" class="b-zuopinView__more">更多</a>
                    </if>
                </div>
            </div>
            <!-- fayan -->
            <a name="msg"></a>
                <div class="b-zuopinFayan">
                    <a href="__WEBURL__/u/{$user.openuid}" class="b-zuopinFayan__pic">
                        <img class="l-full" src="{$user.uavatar|getUavatar}" alt="">
                        <i class="b-popOtherZuopin__itemMask"></i>
                    </a>

                    <form onSubmit="return false">
                        <textarea name="content" id="content" cols="30" title="评论至少3个字! " required data-len="3" rows="10" class="b-zuopinFayan__textarea"></textarea>
                        <input type="hidden" id="infoid" value="{$data.workid}"/>
                        <input type="hidden" id="msgType" value="1"/>
                        <button class="b-zuopinFayan__btn" id="sendMsg_btn" style="float: left;">评论</button>
                    </form>
                </div>
<!-- fayan -->
            <!-- huiying -->
                <if condition="$msgcount gt 0">
                    <div class="b-huiying">
                        <div class="b-huiying__title">{$data.title}的评论({$msgcount}个)</div>
                        <div class="b-huiying__list">
                            <include file="Public:msglist" />
                        </div>
                    </div>
                </if>
<!-- huiying -->

        </div>
        <div class="b-popDetail__right" style="padding-top: 0px;">
            <div class="b-popRightUser">
                <a href="__WEBURL__/u/{$data.openuid}" class="b-popRightUser__pic"><img src="{$data.uavatar|getUavatar}"><i class="b-picMask"></i></a>
                <a href="__WEBURL__/u/{$data.openuid}" class="b-popRightUser__name">{$data.nickname}的烘焙厨房</a>
                <if condition="$data.ifrz eq 1"><a href="__WEBURL__/us/renzheng.html"><i class="b-renzhengIcon pic_mid"></i></a></if>
                <div class="b-popRightUser__info">
                    <a href="">{$data.fansnum}</a><span>人关注</span>
                    <span class="b-popRightUser__line">|</span>
                    <a href="__WEBURL__/u/{$data.openuid}/works">{$hbworksnum}</a><span>个烘焙作品</span>
                    <span class="b-popRightUser__line">|</span>
                    <a href="__WEBURL__/u/{$data.openuid}/suipai">{$spworksnum}</a><span>个随拍作品</span>
                </div>
            </div>
            <if condition="$isfans gt 0">
                <a class="b-popRightGuanzhu R_ajax_trip" data-info="userid,{$data.userid}" data-url="do/cancelfans/">取消关注</a>
                <else/>
            <a class="b-popRightGuanzhu R_ajax_trip" data-info="userid,{$data.userid}" data-url="do/addfans/">关注</a>
            </if>

            <div class="b-popOtherZuopin">
                <div class="b-popOtherZuopin__top">
                    <span class="b-popOtherZuopin__desc">{$data.nickname}的其它作品</span>
                    <a href="__WEBURL__/u/{$data.openuid}" class="b-popOtherZuopin__all">查看全部</a>
                </div>
                <div class="b-popOtherZuopin__list yf-popOtherZuopin">
                    <foreach name="moresp" item="ms">
                        <if condition="$ms.type eq 1">
                        <a href="__WEBURL__/works/{$ms.workid}" class="b-popOtherZuopin__item yf-popOtherZuopin-img <if condition="($key+1)%3 eq 0">yf-popcancel-right</if>" style="background-image: url(__FILESURL__{$ms.image});" title="{$ms.title}"></a>
                            <else/>
                        <a href="__WEBURL__/copy/{$ms.workid}" class="b-popOtherZuopin__item yf-popOtherZuopin-img <if condition="($key+1)%3 eq 0">yf-popcancel-right</if>" style="background-image: url(__FILESURL__{$ms.image});" title="{$ms.title}"></a>
                        </if>
                    </foreach>
                </div>
            </div>
      <!--      <foreach name="rightad" item="ra">
                <a href="{$ra.linkurl}" class="b-slideAdvert"><img src="__FILESURL__{$ra.image}"></a>
            </foreach>
        -->
        </div>
    </div>


</div>

<include file="Public:footer" />

</div>
<script>
    $(document).ready(function() {
        $("#bd-share").mouseover(function (e) {
            e.preventDefault();
            $(".bd-share-code").slideDown(500);
        });
        $(".bd-share-code").mouseleave(function () {
            $(this).slideUp(500);
        });
    })
</script>
<script src="__JS__/index.js"></script>
<script src="__JS__/jquery.common.js?v=20150101"></script>
<script src="__JS__/jquery.doajax.js"></script>
</body>
</html>